<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
   <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!doctype html>
<html lang="en">
<head>
	<c:set var="ctxPath" value="${pageContext.request.contextPath}"
		scope="application" />
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>我的二维码</title>
    <link rel="stylesheet" href="${ctxPath }/css/reg.css">
    <script src="${ctxPath }/js/jquery-3.1.1.min.js"></script>
    <script src="${ctxPath }/js/layer.js"></script>
</head>
<body>
    <div class="container">
        <div class="codeBox">
            <div class="btnBox">
                <a href="javascript:;" class="active">顾客</a>
                <a href="javascript:;">经销商</a>
            </div>
            <div class="codeImgBox">
                <div class="imgBox1">
                  	     <img src="${ctxPath }/login/getQRCode.do" alt="" width="400" height="400"  >
                </div>
            </div>
        </div>
    </div>
    <script>
        $(".btnBox a").click(function(){
            $(this).addClass("active").siblings().removeClass("active");
            $(".codeImgBox div").hide().eq($(".btnBox a").index(this)).show();
        })
    </script>
</body>
</html>